package info.techgeek.labs.Vararg;

class Vararg {
	  static void wide_vararg(long... x) { 
		  System.out.println("long..."+x);
//		  System.out.println("long...1st "+x[0]+" 2nd "+x[1]);
		  }
	  static void box_vararg(Integer... x) {
		  System.out.println("Integer...");
//		  System.out.println("Integer...1st "+x[0]);
//		  System.out.println("Integer...1st "+x[0]+" 2nd "+x[1]); 
		  }
	  public static void main(String [] args) {
	    int i = 5;
	    wide_vararg(4);     // needs to widen and use var-args
	    box_vararg(5,2);      // needs to box and use var-args
	  }
	}

